RectRgn
To change the structure of an existing region to that of a rectangle, you can use theRectRgn
procedure.
PROCEDURE RectRgn (rgn:†RgnHandle; r:†Rect);
rgn
- A handle to the region to restructure as a rectangle.
r
- The rectangle structure to use.
DESCRIPTION
TheRectRgn
procedure destroys the previous structure of theSetRectRgn
procedure, and it then sets the new structure to a rectangle that you specify in ther
parameter.As an alternative to the
RectRgn
procedure, you can use theSetRectRgn
procedure, which accepts as parameters four coordinates instead of a rectangle.SPECIAL CONSIDERATIONS
TheRectRgn
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.